export function splitToArray(
  str: string | null,
  sep: string = ',',
  defaultValue: string[] = []
): string[] {
  if (str == null) return defaultValue
  return String(str).split(sep)
}
